package com.hotelManagerSystem.mapper;

import com.hotelManagerSystem.model.DishOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author treasy
 * @since 2021-12-22
 */
public interface DishOrderMapper extends BaseMapper<DishOrder> {
    @Select("select * from dish_order")
    List<DishOrder> queryAll();

    @Select("select * from dish_order where room_order_id = #{id}")
    List<DishOrder> queryByRoomId(Integer id);
}
